package team.pra.manager.mapper;

import team.pra.manager.common.PageHelper;
import team.pra.manager.pojo.User;

import java.util.List;

public interface UserMapper {
    Boolean insertToUser(User user);
    Boolean deleteUser(Integer id);
    Boolean updateUser(User user);
    User login(User user);
    Integer countUserNumber();
    List<User> findUserByCondition(PageHelper<User> pageHelper);
    Integer countFilterUserNumber(PageHelper<User> pageHelper);
    User findUserByUserName(String username);
    User findUserById(Integer id);
}
